package a.g;

import java.util.Properties;

class c
{
  private static int a = 5;
  
  public static Properties a(kb paramkb, String paramString)
  {
    int i = f.p;
    boolean bool = f.o;
    String str = "";
    label27:
    label78:
    label83:
    do
    {
      for (;;)
      {
        if (!paramkb.hasMoreTokens()) {
          break label92;
        }
        if (bool) {
          break label97;
        }
        if (str.equals(paramString)) {
          break label92;
        }
        do
        {
          for (;;)
          {
            if (!paramkb.hasMoreTokens()) {
              break label78;
            }
            if (i != 0) {
              break label27;
            }
            if (bool) {
              break;
            }
            if (str.equals("<")) {
              break label78;
            }
            try
            {
              str = paramkb.nextToken();
            }
            catch (Exception localException1)
            {
              if (i != 0) {
                break label83;
              }
            }
          }
        } while (!bool);
        try
        {
          str = paramkb.nextToken();
        }
        catch (Exception localException2) {}
      }
    } while (!bool);
    label92:
    if (!str.equals(paramString)) {
      label97:
      return null;
    }
    if (str.equals(paramString))
    {
      Properties localProperties = new Properties();
      b(paramkb, localProperties);
      return localProperties;
    }
    return null;
  }
  
  public static String b(kb paramkb, String paramString)
  {
    int i = f.p;
    boolean bool = f.o;
    StringBuffer localStringBuffer = new StringBuffer();
    String str1 = "";
    label116:
    label117:
    label127:
    do
    {
      do
      {
        if (!paramkb.hasMoreTokens()) {
          break;
        }
        if (i != 0) {
          break label166;
        }
        if (str1.equals(paramString)) {
          break;
        }
        do
        {
          do
          {
            do
            {
              if (!paramkb.hasMoreTokens()) {
                break;
              }
              if (i != 0) {
                break label116;
              }
              if (str1.equals("<")) {
                break;
              }
              try
              {
                str1 = paramkb.nextToken();
              }
              catch (Exception localException1) {}
            } while (str1.equals("<"));
            localStringBuffer.append(str1);
            if (i != 0) {
              break label127;
            }
            if ((i == 0) && (bool)) {
              break label117;
            }
          } while (i != 0);
        } while (!bool);
        try
        {
          str1 = paramkb.nextToken();
        }
        catch (Exception localException2) {}
      } while (str1.equals(paramString));
      localStringBuffer.append(str1);
      if (i != 0) {
        break label166;
      }
      if (i != 0) {
        break label186;
      }
      if (bool) {
        break label176;
      }
    } while ((i == 0) && (!bool));
    label166:
    if (i == 0) {
      if (!str1.equals(paramString)) {
        return null;
      }
    }
    label176:
    if ((i != 0) || (str1.equals(paramString)))
    {
      label186:
      String str2 = "";
      Properties localProperties = new Properties();
      do
      {
        if (str2 == null) {
          break;
        }
        str2 = a(paramkb);
        if (bool) {
          break label289;
        }
        if (str2 == null) {
          return localStringBuffer.toString();
        }
        do
        {
          for (;;)
          {
            if (!paramkb.hasMoreTokens()) {
              break label264;
            }
            if (!bool)
            {
              if (str1.equals("=")) {
                break label264;
              }
              try
              {
                str1 = paramkb.nextToken();
              }
              catch (Exception localException3) {}
            }
          }
        } while (!bool);
        String str3 = a(paramkb);
        localProperties.setProperty(str2, str3);
      } while (!bool);
    }
    label264:
    label289:
    return localStringBuffer.toString();
  }
  
  public static String a(kb paramkb, Properties paramProperties)
  {
    int i = f.p;
    boolean bool = f.o;
    String str1 = "";
    String str2 = "";
    do
    {
      do
      {
        for (;;)
        {
          if (!paramkb.hasMoreTokens()) {
            break label62;
          }
          if ((i != 0) || (bool)) {
            break label66;
          }
          if (str2.equals("<")) {
            break label62;
          }
          try
          {
            str2 = paramkb.nextToken();
          }
          catch (Exception localException1) {}
        }
      } while (i != 0);
    } while (!bool);
    label62:
    if (!paramkb.hasMoreTokens()) {
      label66:
      return null;
    }
    try
    {
      str1 = paramkb.nextToken();
    }
    catch (Exception localException2) {}
    b(paramkb, paramProperties);
    return str1;
  }
  
  private static void b(kb paramkb, Properties paramProperties)
  {
    int i = f.p;
    boolean bool = f.o;
    Object localObject = "";
    label115:
    do
    {
      if (!paramkb.hasMoreTokens()) {
        break;
      }
      String str2 = "\n";
      do
      {
        do
        {
          for (;;)
          {
            if (!paramkb.hasMoreTokens()) {
              break label132;
            }
            if (i != 0) {
              break label175;
            }
            if (bool) {
              break label139;
            }
            break label163;
            if (!str2.equals("\t"))
            {
              if (i != 0) {
                break label115;
              }
              if (!str2.equals("\n"))
              {
                if (i != 0) {
                  break label115;
                }
                if (!str2.equals("\r"))
                {
                  if (i != 0) {
                    break label115;
                  }
                  if (!str2.equals(" "))
                  {
                    if (i != 0) {
                      break label136;
                    }
                    if (!str2.equals("\f")) {
                      break label132;
                    }
                  }
                }
              }
            }
            try
            {
              str2 = paramkb.nextToken();
            }
            catch (Exception localException1) {}
          }
        } while (i != 0);
      } while (!bool);
      if (str2.equals(">")) {
        return;
      }
      localObject = str2;
      if (i == 0) {
        if (!paramkb.hasMoreTokens()) {
          return;
        }
      }
      do
      {
        for (;;)
        {
          if (!paramkb.hasMoreTokens()) {
            break label222;
          }
          if (i != 0) {
            break;
          }
          if (bool) {
            break label229;
          }
          if (str2.equals("=")) {
            break label222;
          }
          if (i != 0) {
            break label226;
          }
          if (str2.equals(">")) {
            break label222;
          }
          try
          {
            str2 = paramkb.nextToken();
          }
          catch (Exception localException2) {}
        }
        if (i != 0) {
          break;
        }
      } while (!bool);
      if (str2.equals(">")) {
        return;
      }
      String str1 = a(paramkb);
      paramProperties.setProperty((String)localObject, str1);
    } while (!bool);
    label132:
    label136:
    label139:
    label163:
    label175:
    label222:
    label226:
    label229:
    return;
  }
  
  private static String a(kb paramkb)
  {
    int i = f.p;
    boolean bool = f.o;
    String str1 = "";
    String str2 = "";
    do
    {
      do
      {
        for (;;)
        {
          if (!paramkb.hasMoreTokens()) {
            break label72;
          }
          if ((i != 0) || (bool)) {
            break label79;
          }
          if (str1.equals("\"")) {
            break label72;
          }
          try
          {
            str1 = paramkb.nextToken();
            if (str1.equals(">")) {
              return null;
            }
          }
          catch (Exception localException1) {}
        }
      } while (i != 0);
    } while (!bool);
    label72:
    str1 = "";
    label79:
    do
    {
      for (;;)
      {
        if (!paramkb.hasMoreTokens()) {
          return str2;
        }
        if (bool) {
          break label149;
        }
        if ((i == 0) && (str1.equals("\""))) {
          return str2;
        }
        try
        {
          str1 = paramkb.nextToken();
          if ((i != 0) || (!str1.equals("\""))) {
            str2 = str2 + str1;
          }
        }
        catch (Exception localException2) {}
      }
    } while (!bool);
    label149:
    return str2;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.g.c
 * JD-Core Version:    0.7.0.1
 */